﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace KoliUstu
{
    public partial class KoliUstuReiss : DevExpress.XtraReports.UI.XtraReport
    {
        public DataSet dsData { get; set; }
        public KoliUstuReiss(DataSet dsData)
        {
            InitializeComponent();

            this.dsData = dsData;

            BindDstoReport();
        }

        void BindDstoReport()
        {
            this.DataMember = "Table";
            this.DataSource = dsData;

            tcAddress1.DataBindings.Add("Text", null, "Table.Address1");
            tcAddress2.DataBindings.Add("Text", null, "Table.Address2");
            tcAddress3.DataBindings.Add("Text", null, "Table.Address3");
            tcAddress4.DataBindings.Add("Text", null, "Table.Address4");
            tcAddress5.DataBindings.Add("Text", null, "Table.Address5");
            tcTel.DataBindings.Add("Text", null, "Table.Tel");
            tcFax.DataBindings.Add("Text", null, "Table.Fax");
            tcContact.DataBindings.Add("Text", null, "Table.Contact");
            tcEMail.DataBindings.Add("Text", null, "Table.EMail");
            tcArticle.DataBindings.Add("Text", null, "Table.Article");
            tcOrder.DataBindings.Add("Text", null, "Table.OrderNr");
            tcStyle.DataBindings.Add("Text", null, "Table.Style");
            tcColor.DataBindings.Add("Text", null, "Table.Color");
            tcSize.DataBindings.Add("Text", null, "Table.Size");
            tcQuantity.DataBindings.Add("Text", null, "Table.Quantity");
            tcWarehouseName.DataBindings.Add("Text", null, "Table.WarehouseName");
            tcCartonNoBoxTotal.DataBindings.Add("Text", null, "Table.CartonNoBoxTotal");

        }

    }
}
